/*
The MIT License (MIT)

Copyright (c) 2013 Mike Dapiran, Brian May, Richard Pospesel, and Bert Wierenga

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software 
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#pragma once

// chapter 7 of documentation
// get and set transforms on motion states of rigid bodies
// set and get forces on the rigid bodies directly
// rigid bodies also have gravity

#include "Hogshead.Common.h"

#include "Hogshead.BulletPhysics.Enums.h"

namespace Hogshead
{
	namespace BulletPhysics
	{
		void initialize();
		void finalize();

		// our manager
		class BulletPhysicsManager;

		// motion state for transform interpolation
		class HogsheadMotionState;

		// director
		class BulletPhysicsDirector;
		class CullingDirector;

		// components
		class CollisionShape;
		class RigidBody;
		class TriggerVolume;
		class CulledBody;
		class CullingFrustum;

		// messages
		class CollisionMessage;
		class SetMaxSpeedMessage;

		class ApplyTransformMessage;
		class ApplyVelocityMessage;
		class ApplyImpulseMessage;

		class SetForceMessage;
		class SetFrictionMessage;
		class SetRestitutionMessage;
		class SetDampeningMessage;

		class SetGroupMaskMessage;

		class SetGravityEnabledMessage;
		class SetMaxSpeedMessage;

		class SetCollisionActivity;

		class CullingMessage;

		// datastructures
		extern HashTable<String, RigidBodyType>* rigid_body_enum_table;
		extern HashTable<String, CollisionShapeType>* collision_shape_enum_table;
	}
}

#include "DataStructures\HogsheadMotionState.h"

#include "Components\CollisionShape.h"
#include "Components\RigidBody.h"
#include "Components\TriggerVolume.h"
#include "Components\CulledBody.h"
#include "Components\CullingFrustum.h"

#include "Messages\CollisionMessage.h"

#include "Messages\ApplyTransformMessage.h"
#include "Messages\ApplyVelocityMessage.h"
#include "Messages\ApplyImpulseMessage.h"

#include "Messages\SetGravityEnabledMessage.h"
#include "Messages\SetForceMessage.h"
#include "Messages\SetFrictionMessage.h"
#include "Messages\SetRestitutionMessage.h"
#include "Messages\SetMaxSpeedMessage.h"
#include "Messages\SetGroupMaskMessage.h"

#include "Messages\CullingMessage.h"
#include "Messages\SetCollisionActivity.h"

#include "Directors\BulletPhysicsDirector.h"

#include "Managers\BulletPhysicsManager.h"

#include "DataStructures\RayCastResults.h"
#include "DataStructures\ContactResults.h"

using namespace Hogshead::BulletPhysics;

